package day03;

import java.util.Scanner;
/**
 *  关系运算符：>  <   >=  <= !=  ==
 *  自增自减运算符：++   --
 *
 */
public class Demo02 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入2个整数:");
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        if(a>b){
            System.out.println("a大,a的值是:"+a);
        }else if(a<b){
            System.out.println("b大,b的值是:"+b);
        }else{
            System.out.println("a和b相等,值为:"+a);
        }
        int c = 5;
        int d = c++;//后加加,先运算后自己加1，int d=c,c=c+1
        System.out.println("d="+d+",c="+c);//d=5,c=6
        int e = ++c;//前加加,先自己加1，再运算 c=c+1,int e=c;
        System.out.println("e="+e+",c="+c);//e=7,c=7
    }
}
